# -*-coding:utf-8-*-

from django import forms

class ServeraddForm(forms.Form):
    name = forms.CharField(required=True,min_length=2)
    path = forms.CharField(required=True,min_length=1)

class EditServerForm(forms.Form):
    name = forms.CharField(required=True, min_length=2)
    path = forms.CharField(required=True, min_length=1)

class RouteraddForm(forms.Form):
    name = forms.CharField(required=True,min_length=2)
    path = forms.CharField(required=True,min_length=3)
    server = forms.CharField(required=True,min_length=2)

class EditRouterForm(forms.Form):
    name = forms.CharField(required=True, min_length=2)
    path = forms.CharField(required=True, min_length=3)
    server = forms.CharField(required=True, min_length=2)

class ResponseaddForm(forms.Form):
    name = forms.CharField(required=True,min_length=2)
    json_result = forms.CharField(required=True,min_length=3)
    delay = forms.CharField(required=True,min_length=1)
    router = forms.CharField(required=True,min_length=1)

class EditResponseForm(forms.Form):
    name = forms.CharField(required=True,min_length=2)
    json_result = forms.CharField(required=True,min_length=3)
    delay = forms.CharField(required=True,min_length=1)
    router = forms.CharField(required=True,min_length=1)
